/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.infnet.cultbook.dao;

import java.util.List;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.Query;

/**
 *
 * @author Diego
 */
public interface IGenericDao {


    public void refrescar(Object objeto);

    public void salvar(Object o);
    public void remover(Object o);

    public void remover(List objetos);

    public <T> List<T> listar(Class<T> classe);

    public <T> List<T> listar(Class<T> classe, String nomeQuery, Object... args);

    public <T> T localizar(Class<T> classe, int id);
    
    public <T> T localizar(Class classe, String nomeQuery, Object... args);

}


